#!/bin/bash

## Calculate time
## $1 - time in seconds
time_cal() {
        local minutes

        minutes=$(($1 / 60))

        echo "Time elapsed: $minutes minute(s)."
}


start_time=`date +%s`

sync

echo -e "\nDone."
echo -e "\n`date`"

end_time=`date +%s`


time = $end_time - $start_time

echo "Time elapsed: $time second(s)."

# time_cal $(($end_time - $start_time))
